<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员推广_会员中心_<?php echo $cfg_webname; ?></title>
<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
<link href="../../templets/23ps/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>


<script language="javascript">
function checkall(form, prefix, checkall)
{
	var checkall = checkall ? checkall : 'all';
	for(var i = 0; i < form.elements.length; i++)
	{
		var e = form.elements[i];
		if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix))))
		{
			e.checked = form.elements[checkall].checked;
		}
	}
}
function UpdateOne(tid)
{
	location = "tags_main.php?action=update&count="+document.getElementById('count'+tid).value+"&tid="+tid;
}
function DeleteOne(tid)
{
	location = "tags_main.php?action=delete&ids="+tid;
}
</script>

</head>
<body>


<?php include(DEDEMEMBER.'/templets/head.htm'); ?>


<div id="content" class="content clearfix">
    <div class="breadcrumbs"><a href="../member/">用户中心</a><span>&gt;</span><!--a href="edit_baseinfo.php">信息设置</a><span>></span--><h1>注册推广</h1></div>
    <div style="padding:0 10px 20px 10px;">
<?php

//检测是否已经开通
$row = $dsql->GetOne("Select userid From `#@__tgreg` where userid like '$cfg_ml->M_ID' ");
if(is_array($row))
	{
    
    echo '<p style="text-align:center; line-height:24px; font-size:14px; text-align:center; color:#000; padding:20px;">您的推广链接：http://www.23ps.com/index.php?id='.$cfg_ml->M_ID;
    echo '<br/>马上发生给您的朋友吧，有积分拿哦！</p>';
?>


   <form class="mTB10" name="form2">         	
   <input type='text' name='soso' size='20' value="<?php echo $soso;?>">
   <select  name='solei'>
   <option value='soip'>搜索IP</option>
   <option value='solailu'>搜索来路</option>
   </select>
   <button class="button2" type="submit">搜索</button>
   </form>





 <form name='form' action="?action=delete" method="post">
 <table cellspacing="1" width="100%;" class="list mT10">
 <thead>
 <tbody>
  <tr>
  <td colspan="5">
   <div class="pages">{dede:pagelist listsize=5 /}</div>
  </td>
  </tr>
 </tbody>
                <tr style="">
                  <th width="10%" style="height:32px; vertical-align:middle;border-bottom: 1px solid #ccc;" align="center"><a href='?'>删?</a></th>
                  <th width="20%" style="height:32px; vertical-align:middle;border-bottom: 1px solid #ccc;" align="center"><a href='?solei=<?php echo $solei;?>&soso=<?php echo $soso;?>&orderby=id&orderway=<?php echo $neworderway;?>'>编号ID</a></th>
                  <th width="20%" style="height:32px; vertical-align:middle;border-bottom: 1px solid #ccc;" align="center"><a href='?solei=<?php echo $solei;?>&soso=<?php echo $soso;?>&orderby=tgip&orderway=<?php echo $neworderway;?>'>IP地址</a></th>
                  <th width="20%" style="height:32px; vertical-align:middle;border-bottom: 1px solid #ccc;" align="center"><a href='?solei=<?php echo $solei;?>&soso=<?php echo $soso;?>&orderby=time&orderway=<?php echo $neworderway;?>'><u>时间</u></a></th>
                  <th width="30%" style="height:32px; vertical-align:middle;border-bottom: 1px solid #ccc;" align="center">来路</th>
                </tr>

  </thead>
  <tbody>







{dede:datalist}

              <tr>
                <td><input type="checkbox" name="id[]" value="{dede:field.id/}"></td>
                <td>{dede:field.id/}</td>
                <td>{dede:field.tgip/}</td>
                <td><?php echo MyDate('y-m-d H:i:s', $fields['time']); ?></td>
                <td><a href='tgreg.php'>[查看]</a>&nbsp;&nbsp;{dede:field.lailu/}</td>
              </tr>
{/dede:datalist}


              </tbody>
              <tfoot>


                <tr>
                 <td colspan="5" style="padding:20px 0;">

                <label>
                <input type="checkbox" onclick="checkall(this.form, 'id')" name="all" class="np" />全选&nbsp;&nbsp;&nbsp;&nbsp;
                <button class="button2" type="submit">删所</button>&nbsp;&nbsp;是否清除所有？
                <input type="checkbox" name="dels" value="dels">
                </label>

                 </td>
                </tr>

                <tr>
                 <td colspan="5">
                <div class="pages">{dede:pagelist listsize=5 /}</div>     
                 </td>
                </tr>

              </tfoot>
            </table>
          </form>
 

<?php
}
else
{
?>    

 <form class="mTB10" action="tgreg.php?action=add" method="post">
 <button class="button5" type="submit" style="margin:30px 0 100px 400px; width:180px; height:48px; text-align:center; font-weight:bold; font-size:18px; font-family:'微软雅黑', '黑体';     background: none repeat scroll 0 0 #EFF6F7;
    border: 1px solid #B6D5DA;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 1px 1px 3px #EEEEEE;
    display: block; color:#000;">开通推广功能</button>
 </form>    



<?php
}
?>           
      
      
    </div>
  </div>




<?php include(DEDEMEMBER.'/templets/foot.htm'); ?>
</div>
</body>
</html>
